<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
function searchPassCheck(obj){
	var a = document.searchPass;
	if(!a.searchId.value || a.searchId.value==""){
		alert('검색할 Id를 입력하세요!');
		a.searchId.focus();
		return false;
	}else if(!a.searchPhone.value || a.searchPhone.value==""){
		alert('검색할 전화번호를 입력하세요!');
		a.searchPhone.focus();
		return false;
	}else{
		return true;
	}
}


</script>
<div style="float: bottom;" align="center">
		<img src="<%=request.getContextPath() %>/image/idpass.png">
</div>
<form action="searchPass.do" name="searchPass" method="post" onsubmit="return searchPassCheck(this)">
	<table border="0" cellspacing="0" cellpadding="2" align="center">
		<tr>
			<td style="background: #d3d3d3;font-weight: bold">ID입력</td>
			<td>
				<input type="text" style="size: 50px;" size="25" name="searchId" value="<c:if test="${not empty msg }">${msg }</c:if><c:if test="${empty msg }">${m_id }</c:if>" onclick={this.value=''}>
			</td>
			<td rowspan="2">
				<input type="submit" value="비번찾기" style="width: 120px;height: 45px">
			</td>
		</tr>
		<tr>
			<td style="background: #d3d3d3;font-weight: bold">전화번호입력</td>
			<td>
				<input type="text" name="searchPhone" size="25" value="<c:if test="${not empty msg }">${msg }</c:if><c:if test="${empty msg }">${m_phone}</c:if>" onclick={this.value=''}>
			</td>
			
		</tr>
		<%-- <tr>
			<td width = "10px">ID</td><td><input type = "text" id="m_id" value="${member.m_id }" disabled></td><td></td>
		</tr> --%>
		<tr>
			<td style="background: #ffa7a7;font-weight: bold;color: white">PASSWORD확인</td><td><input type = "text" id="m_password" size="25" value="${m_password }" style="background-color: #fae0d4" disabled></td><td></td>
		</tr>
		<tr>
			<td colspan="3" align="center"><input type="button" value="로그인페이지" style="width: 120px;height: 22px" onclick="location.href='login.do'" ></td><td></td>
		</tr>
	</table>
</form>